package com.momo.seckilling.dao;

import com.momo.seckilling.entity.ShopInfo;
import com.momo.seckilling.mapper.ShopMapper;
import com.momo.seckilling.vo.ShopInfoVo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

import java.util.List;

/**
 * Created by li on 2019/2/2.
 */
@Component
public class ShopDao {

    @Autowired
    private ShopMapper shopMapper;

    public void saveShopInfo(ShopInfo shopInfo){
        shopMapper.saveShopInfo(shopInfo);
    }

    public List<ShopInfo> listShopInfoBy(ShopInfoVo shopInfoVo){
        return shopMapper.listShopInfoBy(shopInfoVo);
    }

    public void updateInfoBy(ShopInfo shopInfo){
        shopMapper.updateInfoBy(shopInfo);
    }
}
